package com.center.biz.impl;

import com.center.api.model.EduWebsiteImagesType;
import com.center.api.remote.RemoteEduWebsiteImagesTypeService;
import com.center.biz.dao.EduWebsiteImagesTypeMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = "1.0",interfaceClass = RemoteEduWebsiteImagesTypeService.class)
public class RemoteEduWebsiteImagesTypeServiceImpl implements RemoteEduWebsiteImagesTypeService {

    @Autowired
    private EduWebsiteImagesTypeMapper eduWebsiteImagesTypeMapper;

    @Override
    public int save(EduWebsiteImagesType eduWebsiteImagesType) {
        return eduWebsiteImagesTypeMapper.insertSelective(eduWebsiteImagesType);
    }

    @Override
    public int update(EduWebsiteImagesType eduWebsiteImagesType) {
        return eduWebsiteImagesTypeMapper.updateByPrimaryKeySelective(eduWebsiteImagesType);
    }

    @Override
    public int delete(int id) {
        return eduWebsiteImagesTypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<EduWebsiteImagesType> select(EduWebsiteImagesType eduWebsiteImagesType) {
        return null;
    }

    @Override
    public EduWebsiteImagesType getById(int id) {
        return eduWebsiteImagesTypeMapper.selectByPrimaryKey(id);
    }
}
